package com.common.service.system;


import com.common.query.ConditionService;
import com.common.entity.user.UserEntity;
import com.common.requestvo.system.UserReqVo;
import com.common.vo.system.UserResultVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 用户Service
 *
 * @author johnny
 * @create 2020-07-13 下午4:56
 **/
public interface UserService extends ConditionService<UserEntity> {


    Page<UserResultVo> listByCondition(UserReqVo userReqVo, Pageable pageVo);

    void submitUser(UserReqVo userReqVo);

    UserResultVo findUserInfo(Long id);

    UserResultVo findByUserName(String userName);

    void deleteById(Long userId);

    void edit(UserReqVo userReqVo);


    Long findPersonalIdByUserId(Long userId);

    UserEntity findByUserId(Long userId);

    void save(UserEntity userEntity);
}